package com.atwy.business.feign;

import com.atwy.common.RespBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("order")
public interface OrderFeign {

    @PostMapping(path = "/createOrder")
    RespBean order(@RequestParam("userId") String userId,
                   @RequestParam("commodityCode") String commodityCode,
                   @RequestParam("orderCount") int orderCount);
}
